//-----------------------------------------------------------------------
// <copyright file="a_AlbumService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_AlbumService
    {
        #region a_Album

        public static void Createa_Album(a_Album a_Album)
        {            
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                a_AlbumDAO.Createa_Album(a_Album);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Album(a_Album a_Album)
        {            
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                a_AlbumDAO.Updatea_Album(a_Album);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Album(int id)
        {            
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                a_AlbumDAO.Deletea_Album(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Album Geta_Album(int id)
        {            
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                return a_AlbumDAO.Geta_Album(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_AlbumCollection Geta_AlbumList(a_AlbumColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                return a_AlbumDAO.Geta_AlbumList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_AlbumCollection Geta_AlbumList(a_AlbumColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                return a_AlbumDAO.Geta_AlbumList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static a_AlbumCollection Geta_AlbumListBySSID(string ssid, a_AlbumColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                return a_AlbumDAO.Geta_AlbumListBySSID(ssid,orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_AlbumCollection Geta_AlbumListBySSID(string ssid, a_AlbumColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_AlbumDAO a_AlbumDAO = new a_AlbumDAO();
                return a_AlbumDAO.Geta_AlbumListBySSID(ssid,orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }   
        #endregion
    }
}